package com.yoyosys.service;

import javax.servlet.http.HttpServletRequest;

import org.springframework.security.core.Authentication;

/** 
 * @Description: TODO
 * @ClassName: PermissionService 
 * @author: knight
 * @date: 2018年3月8日 下午9:43:14  
 */
public interface PermissionService {
	 /**
     * 判断请求是否有权限
     *
     * @param request        HttpServletRequest
     * @param authentication 认证信息
     * @return 是否有权限
     */
    boolean hasPermission(HttpServletRequest request, Authentication authentication);
}
